home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / alsa / cards / VIA8237.conf < prev    next >
Text File  |  2006-01-09  |  3KB  |  197 lines

  1. #
  2. # Configuration for the VIA8237 chip with 4/6 multi-channel support
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. VIA8237.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. # default with softvol/dsnoop
  18. # VIA8237 supports multi-playback
  19. VIA8237.pcm.default {
  20.     @args [ CARD ]
  21.     @args.CARD {
  22.         type string
  23.     }
  24.     type asym
  25.     playback.pcm {
  26.         type plug
  27.         slave.pcm {
  28.             type softvol
  29.             slave.pcm {
  30.                 type hw
  31.                 card $CARD
  32.                 device 0
  33.             }
  34.             control {
  35.                 name "PCM Playback Volume"
  36.                 card $CARD
  37.             }
  38.         }
  39.     }
  40.     capture.pcm {
  41.         type plug
  42.         slave.pcm {
  43.             @func concat
  44.             strings [ "dsnoop:" $CARD ]
  45.         }
  46.     }
  47. }
  48.  
  49. <confdir:pcm/surround40.conf>
  50.  
  51. VIA8237.pcm.surround40.0 {
  52.     @args [ CARD ]
  53.     @args.CARD {
  54.         type string
  55.     }
  56.     type hooks
  57.     slave.pcm {
  58.         type hw
  59.         card $CARD
  60.         device 1
  61.     }
  62.     hooks.0 {
  63.         type ctl_elems
  64.         hook_args [
  65.             {
  66.                 name "Channel Mode"
  67.                 device 0
  68.                 preserve true
  69.                 value "4ch"
  70.                 lock true
  71.                 optional true
  72.             }
  73.             {
  74.                 name "Surround Down Mix"
  75.                 device 0
  76.                 preserve true
  77.                 value off
  78.                 lock true
  79.                 optional true
  80.             }
  81.         ]
  82.     }
  83. }
  84.  
  85. <confdir:pcm/surround41.conf>
  86. <confdir:pcm/surround50.conf>
  87. <confdir:pcm/surround51.conf>
  88.  
  89. VIA8237.pcm.surround51.0 {
  90.     @args [ CARD ]
  91.     @args.CARD {
  92.         type string
  93.     }
  94.     type route
  95.     ttable.0.0 1
  96.     ttable.1.1 1
  97.     ttable.2.4 1
  98.     ttable.3.5 1
  99.     ttable.4.2 1
  100.     ttable.5.3 1
  101.     slave.pcm {
  102.         type hooks
  103.         slave.pcm {
  104.             type hw
  105.             card $CARD
  106.             device 1
  107.         }
  108.         hooks.0 {
  109.             type ctl_elems
  110.             hook_args [
  111.                 {
  112.                     name "Channel Mode"
  113.                     device 0
  114.                     preserve true
  115.                     value "6ch"
  116.                     lock true
  117.                     optional true
  118.                 }
  119.                 {
  120.                     name "Surround Down Mix"
  121.                     device 0
  122.                     preserve true
  123.                     value off
  124.                     lock true
  125.                     optional true
  126.                 }
  127.                 {
  128.                     name "Center/LFE Down Mix"
  129.                     device 0
  130.                     preserve true
  131.                     value off
  132.                     lock true
  133.                     optional true
  134.                 }
  135.             ]
  136.         }
  137.     }
  138.     slave.channels 6
  139. }
  140.  
  141. <confdir:pcm/iec958.conf>
  142.  
  143. VIA8237.pcm.iec958.0 {
  144.     @args [ CARD AES0 AES1 AES2 AES3 ]
  145.     @args.CARD {
  146.         type string
  147.     }
  148.     @args.AES0 {
  149.         type integer
  150.     }
  151.     @args.AES1 {
  152.         type integer
  153.     }
  154.     @args.AES2 {
  155.         type integer
  156.     }
  157.     @args.AES3 {
  158.         type integer
  159.     }
  160.     type hooks
  161.     slave.pcm {
  162.         type hw
  163.         card $CARD
  164.         device 0
  165.         subdevice 3
  166.     }
  167.     hooks.0 {
  168.         type ctl_elems
  169.         hook_args [
  170.             {
  171.                 name "IEC958 Playback AC97-SPSA"
  172.                 lock true
  173.                 preserve true
  174.                 value 3
  175.             }
  176.             {
  177.                 name "IEC958 Playback Default"
  178.                 lock true
  179.                 preserve true
  180.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  181.             }
  182.             {
  183.                 name "IEC958 Playback Switch"
  184.                 lock true
  185.                 preserve true
  186.                 value true
  187.             }
  188.             {
  189.                 name "IEC958 Output Switch"
  190.                 lock true
  191.                 preserve true
  192.                 value true
  193.             }
  194.         ]
  195.     }
  196. }
  197.